<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:88:"F:\phpstudy_pro\WWW\www.jiefanggongyuan.com\public/../wcapps/admin\view\liuyan\edit.html";i:1637131700;}*/ ?>
<!DOCTYPE html>

<html>

    <head>

        <meta charset="utf-8">

        <title>

           留言管理

        </title>

        <meta name="renderer" content="webkit">

        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

        <meta name="apple-mobile-web-app-status-bar-style" content="black">

        <meta name="apple-mobile-web-app-capable" content="yes">

        <meta name="format-detection" content="telephone=no">

        <link href="/static/skin/nei.css" type="text/css" rel="stylesheet">  
    </head>

</head>

<body onLoad="initPage()">

<div id="LoadingBar"><img src="/static/images/load.gif" /></div>

<div class="d_contaiter">   

<form class="layui-form layui-form-pane" action="/admin/liuyan/edit" method="post" enctype="multipart/form-data">   
  <div class="layui-form-item">
    <label class="layui-form-label">所属栏目*</label>
    <div class="layui-input-block">
      <select name="ifopen" lay-verify="required" lay-filter="ifopen"   lay-search="">
        <option value="1" <?php if(1 == $data['ifopen']): ?> selected="selected" <?php endif; ?>>已处理</option>
        <option value="0" <?php if(0 == $data['ifopen']): ?> selected="selected" <?php endif; ?>>未处理</option>
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">姓名*</label>
    <div class="layui-input-inline">
      <input type="hidden" name="id"  value="<?php echo $data['id']; ?>">
      <input type="text" name="name"  value="<?php echo $data['name']; ?>" lay-verify="required" autocomplete="off" placeholder="如：千里之行，始于足下--最美海岸线万人徒步大" class="layui-input">
    </div>
    <label class="layui-form-label">电话*</label>
    <div class="layui-input-inline">
      <input type="text" name="tel"  value="<?php echo $data['tel']; ?>" lay-verify="required" autocomplete="off" placeholder="如：18976965856" class="layui-input">
    </div>
    <label class="layui-form-label">邮箱*</label>
    <div class="layui-input-inline">
      <input type="text" name="email"  value="<?php echo $data['email']; ?>" lay-verify="required" autocomplete="off" placeholder="如：343420553@qq.com" class="layui-input">
    </div>
  </div>  
  <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">留言内容</label>
      <div class="layui-input-block">
        <textarea name="content" placeholder="请输入内容" class="layui-textarea"><?php echo $data['content']; ?></textarea>
      </div>
   </div>
   <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">回复留言</label>
      <div class="layui-input-block">
        <textarea name="back_content" placeholder="请输入内容" class="layui-textarea"><?php echo $data['back_content']; ?></textarea>
      </div>
   </div>
  <div class="layui-form-item">

    <button class="layui-btn layui-btn-green" type="submit">提交保存</button>

  </div>

</form>

  

</div>   

<script src="/static/js/jquery-1.10.2.min.js" type="application/javascript"></script>
<script src="/static/js/neijqtab.js" type="application/javascript"></script>
<script src="/static/js/xlayui/layui.js" charset="utf-8"></script>
<script>
function initPage(){   

  var objLoading = document.getElementById("LoadingBar");   

  if (objLoading != null){   

    objLoading.style.display = "none";   

    $(".d_contaiter").css("display","block");

  }   

}  

</script>

<script>

layui.use(['form', 'layedit', 'laydate'], function(){

  var form = layui.form(),layer = layui.layer,layedit = layui.layedit,laydate = layui.laydate;  

  form.on('select(comeform)', function(data){

        $("#copyfrom").val(data.value);

  });

});

</script>

</body>

</html>

